﻿<%@ Page Language="C#" MasterPageFile="~/Template/List.master" AutoEventWireup="true" CodeFile="~/Page/UserAttendList.aspx.cs" Inherits="Page_UserAttendList" Title="无标题页" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script src="../Js/calendar.js"></script>
    <script>
    function getID(id)
    {
        document.getElementById('<%=tbSelectedID.ClientID %>').value = id;
    }
    </script>
    <link href="../Style/Css/calendar.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" Runat="Server">
    个人值班列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ListToolBarPlaceHolder" Runat="Server">
     <div style="display:none ">
        <asp:TextBox ID="tbSelectedID" runat="server"></asp:TextBox>
     </div>
    <table cellspacing="2" cellpadding="0" border="0" width="100%">
        <tr>
           <td class="ToolMenu" width="80">
                <div class="Normal" oldclass="Normal" style="cursor:auto">
                    <span><img src="../Images/Icon/Object/Dataset.gif" alt="" /></span><span>个人值班记录</span>
                </div>
            </td> 
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AdvancedSearchPlaceHolder" Runat="Server">
    <table cellspacing="4" cellpadding="0" border="0" width="100%">
        <tr>
            <td align="right">&nbsp;查询日期：</td>
            <td align="right">
                <asp:TextBox ID="tbSearchDate" runat="server" onfocus="calendar();" class="Textbox01"></asp:TextBox>
            </td>
            <td align="right">&nbsp;查询时间：</td>
            <td align="right">
                <asp:TextBox ID="tbSearchTime" runat="server" class="Textbox01"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">&nbsp;查询人员：</td>
            <td align="right">
                <asp:TextBox ID="tbSearchUserDisplayName" runat="server" class="Textbox01"></asp:TextBox>
            </td>
            <td  colspan="2" align="right">
                <asp:Button ID="btnAdvancedSearch" runat="server" CssClass="Button01" Text="开始查询" 
                    onclick="btnAdvancedSearch_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ListHeaderPlaceHolder" Runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">      
        <wsc:ListHeader ID="lhName" runat="server" Title="&nbsp;值班名称"   OrderColumn="Name"
            Align="center" />
        <wsc:ListHeader ID="lhPlace" runat="server" Title="&nbsp;值班地点"  width="140"  OrderColumn="Place"
            Align="center" />
        <wsc:ListHeader ID="lhCreateTime" runat="server" Title="&nbsp;值班时间" width="140" OrderColumn="CreateTime"
            Align="center"  FirstOrderDirection="DESC"/>   
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ListContentPlaceHolder" Runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptAttendences" runat="server">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="getID(this.id);ClickChangeClass(this);OpenDetail('UserAttendDetail.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>&Manage=false&Nocache=' + Math.random());">                 
                    <td  align="left">
                        &nbsp;<%# DataBinder.Eval(Container.DataItem, "Name")%>
                    </td>
                    <td width="140"  align="left">
                        &nbsp;<%# DataBinder.Eval(Container.DataItem, "Place")%>
                    </td>
                    <td width="140" align="left">
                        <a title="<%# DataBinder.Eval(Container.DataItem, "AttendDateAlt")%>"><%# DataBinder.Eval(Container.DataItem, "AttendDate")%></a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>

